package com.mayblackcat.dy.entity;

import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@EqualsAndHashCode
@TableName("t_comment")
public class Comment implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;
    private String nickName;
    private String content;
    private String avatar;
    private long likes;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private long parentCommentId;
    private long videoId;


    //回复评论
    private List<Comment> replyComment;
    private Comment parentComment;
    private String parentNickname;
}
